/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Administrator
 */
public class EmployeeFactory {
     public enum EmployeeClass{
        FRONT_OPERATOR,
        DEPARTMENT_MANAGER,
        BUSINESS_MANAGER,
        ADMIN,
    }
    public Employee generateEmployee(EmployeeClass empClass) {
        Employee emp = null;
        switch(empClass) {
            case FRONT_OPERATOR:
                emp = new FrontOperator();
                break;
            case DEPARTMENT_MANAGER:
                emp = new DepartmentManager();
                break;
            case BUSINESS_MANAGER:
                emp = new BusinessMananger();
                break;  
            case ADMIN:
                emp = new Admin();
                break; 
        }
        return emp;
    }
}
